/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-12-11 09:18:32
 * @LastEditors: GGB
 * @LastEditTime: 2021-12-11 09:30:06
 */
const path = require("path");
module.exports = {
  // 别名
  alias: {
    "/comps/": path.resolve(__dirname, "src/components"),
  },
  proxy: {
    "/api": {
      target: "https://jsonplaceholder.typicode.com",
      changeOrigin: true,
      rewrite: path => path.replace(/^\/api/, ""),
    },
  },
};
